(function () {

    "use strict";

    sm.controller('wx-center-account-index-controller', ['$scope', '$http', 'Modal', 'Toast', function ($scope, $http, Modal, Toast){

        var api = {
            checkBindUrl: '/api/account/check'
        };

        $scope.isBind = false;

        $scope.checkBind = function () {
            $http.get(api.checkBindUrl).success(function (res) {
                if (res.state) {
                    $scope.isBind = res.data.isBind;
                }
            });
        };

        $scope.checkBind();

    }]);
})();

